<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>VRD内容管理系统</title>

  <!-- Bootstrap -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
  <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
  <!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
  <![endif]-->
  <!--引入字体图标-->
  <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <style>
      body{background-color: #2e2e2e}
      .navbar{/*导航条样式*/
        background-color: black;
        margin-top: 10px;
        border: 0;
      }
      .navbar-brand>img{
        /*元素微调使用相对定位 最好用*/
        position: relative;
        bottom: 10px;
      }
      form>input{
        background-color: #383838;
        height: 30px;
        border-radius: 30px;
        border: 0;
        padding: 10px 20px;
        margin-top: 10px;
        color: #a8a8a8;
      }
      form>button{
        background-color: rgba(0,0,0,0);/*透明*/
        border: 0;
        color: #a8a8a8;
        /*移动到文本框里面*/
        position: relative;
        right: 40px;
      }
      /*瀑布流相关样式*/
      .grid-item{
          width: 200px; /*设置瀑布流中每个元素的宽度为200*/
          margin: 0 10px 10px 0;  /*设置间距为10个像素*/
      }
      /*右侧边栏样式*/
      .list-group-item{
        background-color: black;
        border: 0;
        color: #ffc600;
      }
      .list-head{
        background-color: #ffc600;
        color: black;
      }
      .well{
        background-color: black;
        color: #ffc600;
        font-weight: bold;
        text-align: center;
        border: 0;
      }
  </style>
  <!--瀑布流样式-->
  <style>
    .float_div{
      width: 100%;
      height: 40px;
      background-color: #0aa1ed;
      color: #ffc600;
      text-align: center;
      position: absolute;  /*绝对定位  实现层叠效果*/
      bottom: 0; /*显示在底部*/
      display: none; /*隐藏元素*/
    }
    .float_div>p{
      margin: 0;
    }
    /*缩放动画*/
    img{
      transition-duration: 2s;
    }
    img:hover{
      transform: scale(1.2); /*缩放1.2倍*/
    }
    .grid-item{
      overflow: hidden; /*超出范围不显示*/
    }
  </style>
</head>
<body>
<myheader></myheader>
<section class="container">
  <!--轮播图开始-->
  <div id="myCarousel" class="carousel slide" style="margin-bottom: 5px">
    <!-- 轮播（Carousel）指标 -->
    <ol class="carousel-indicators">
      <li v-for="(b,i) in arr" data-target="#myCarousel" :data-slide-to="i" :class="i == 0 ? 'avtive' : ''"></li>
    </ol>
    <!-- 轮播（Carousel）项目 -->
    <div class="carousel-inner">
      <div v-for="(b,i) in arr" :class="i == 0 ? 'item active' : 'item'">
        <img :src="b.url" alt="图片出错了">
        <div class="carousel-caption"></div>
      </div>
      <div class="item">
        <img src="images/banner1.jpg" alt="Second slide">
        <div class="carousel-caption"></div>
      </div>
      <div class="item">
        <img src="images/banner2.jpg" alt="Third slide">
        <div class="carousel-caption"></div>
      </div>
    </div>
    <!-- 轮播（Carousel）导航 -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
  <!--轮播图结束-->
  <div class="row">
    <div class="col-md-9">
      <!--瀑布流开始-->
      <div class="grid">
        <div v-for="p in arr" class="grid-item">
          <a :href="'/detail.html?id='+p.id">
            <img :src="p.url" class="img-responsive" alt="">
          </a>
          <div class="float_div">
            <p>{{p.title}}</p>
            <i class="fa fa-eye">{{p.viewCount}}</i>
            <i class="fa fa-thumbs-o-up">{{p.likeCount}}</i>
          </div>
        </div>
      </div>
      <!--瀑布流结束-->
    </div>
    <div id="right_div" class="col-md-3">
      <myright></myright>
    </div>
  </div>
</section>
<footer class="container">
  <div class="well">
    Copyright © 北京达内金桥科技有限公司版权所有 京ICP备12003709号-3
  </div>
</footer>
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<!--引入瀑布流相关的js文件-->
<script src="js/masonry.pkgd.min.js"></script>
<!--引入图片加载完时间点相关的js文件-->
<script src="js/imagesloaded.pkgd.js"></script>
<!--引入axios和vue-->
<script src="js/axios.min.js"></script>
<script src="js/vue.js"></script>

<script src="js/header.js"></script>
<script src="js/banner.js"></script>
<script src="js/product.js"></script>
<script src="js/right.js"></script>
<script>
  //让轮播图开始移动
  $("#myCarousel").carousel("cycle");
</script>
</body>
</html>